Use python to implement sms pdu encoding and python SMS pdu Encoding
A few days ago, I started a 3G module, and then I went backwards. You need to send text messages in both Chinese and English, so the PDU mode is used (not familiar with google pai_^ ).
The biggest problem i
One of the things that I used to do, to sort out the data. Today I studied the SMS PDU format for a morning and found a way to set up SMS receipts in the PDU string. It's in Pdu-type. This 8-bit group is generally set to 11: Contains TP-MTI (2bit), Tp-rd (1bit), TP-VPF (2bit
Tian haili @ csdn
2012-06-29
Wap push is encapsulated in sms pdu. To resolve wap push, you must first read the sms pdu code, which is the basis of services such as SMS, MMS, and wap push. Wap push is sent to the terminal. Therefore, this article mainly describes the deliver
Java pdu SMS decoding and javapdu SMS
Java pdu SMS Decoding
If you are interested in long text message verification, try it.
Rewritten according to the python Method
1/** 2 * pdu sms re
The encoder of the PDU works as a reverse process of the decoder. It is relatively straightforward to work with the PDU code sent only by the encoder as required . This article explains the coding idea, the specific code please refer to the Blog pduencoder partI took The PDU code is divided into two parts,SMS and EMS.
7-bit encoding: Send common ASCII characters; 8-bit encoding: usually used to send data messages; ucs2 encoding: used to send Unicode characters.
Generally, the PDU code consists of 13 items, namely, a B c d e f g h I j k l m. The meaning of these 13 items are as follows:
A: The length of the SMS center address, two hexadecimal digits (1 byte ). B: The number type of the
Original link: http://www.cppblog.com/zhangyq/archive/2009/07/04/89245.html
There are three ways to send and receive SMS information: Block Mode, Text Mode, and PDU mode. PDU mode is supported by all mobile phones and can use any character set, which is the default encoding of the phone.Send short messages commonly used text and
There are three methods to send and receive SMS messages: block mode, text mode, and PDU mode. PDU mode is supported by all mobile phones and can use any character set. This is also the default encoding method for mobile phones.
Text and PDU (Protocol Data Unit) modes are commonly used to send short messages. Sending a
The decoding part was simply completed yesterday, and the encoding part is added today (in the same class ). This method is similar to the encoding part. The attribute is used to decode fields.ProgramWritten in the attribute access section. The decoded function only needs to read these attribute values to complete PDU decoding.
The PDU string received by the mobile phone or
This was learned in others' blogs when I solved the bug of sending a report via SMS on andorid. The description is very meticulous, after reading it carefully, you can solve the sms pdu format of CDMA by yourself. In addition, the original author also distinguished the byte by color, which is great.
[Stick to no color, cup, original link: http://blog.lytsing.or
number.3105152.164f5: The target mobile phone number.Generally set to 00, indicating general GSM, point-to-point Indicates the encoding method of the TP-UD. 08 represents the Unicode mode. Refer to the gsm03.38 protocol:Bit 3, 200 default alphabet01 8 bit10 ucs2 (16bit) [10]11 ReservedFF indicates the maximum value.The actual length of user data. Note that the user length is defined differently under different codes.You: 0x4f60; good: 0x597d2: PDU st
Principle and Implementation of GSM Chinese text message sms pdu encoding in Linux development
SMS is a specification developed by Esti (GSM 03.40 and GSM 03.38 ). There are two ways to send and receive SMS messages: text mode or PDU (protocol description unit) mode. In text
'*************************************** **************************************** ****'The normal SIM card number is converted to the sending format SIM card number. Input 11 characters and output 12 characters'*************************************** **************************************** ****Public Function simsendchange (simstring as string)Dim I as integerI = 2Do while I 0 thenStartposition = instr (strarray (I), "08916831 ")If startposition-4> 0 then'
'There' s no '86' before the sour
Many people on the internet use the COM port to connect to the mobile phone, use the mobile phone modem, use the AT command to send text messages, introduce the principles of PDU encoding, and write a ready-made class for reference and use.
Smspduclass. CLs
Option explicit
'Preserve the local variable of the attribute valuePrivate mvarsmsclen as integer local ReplicationPrivate mvarsmsctype as string' local copyPrivate mvarsmsc as string' local copyPr
Tag: Message code NIC number submit add BSP phone creatA few days ago to start a 3G module, then daoteng a bit. Need to send mixed SMS in Chinese and English, so use PDU mode (do not know Google ^_^).The biggest problem of course is splicing PDU code (Python is so powerful, maybe a module), sure enough to find a SMSPDU module (link: HTTPS://PYPI.PYTHON.ORG/PYPI/S
These two days received the test at command to send information, when sending PDU format information need to manually input characters too much, more trouble, would like to write a small script with py, I am here to install is Python32. It seems that you also need to install the Pyserial package. PDU Information conversion can refer to http://www.multisilicon.com/_a/blog/a22201774~/pdu.htm
Directly on the
PDU codec details
Brief Introduction
SMS is a specification developed by ETSI (GSM 03.40 and GSM 03.38 ). It can send up to 160 characters, when using 7-bits encoding. 8-bit encoding (up to 140 characters) is usually not displayed directly through the mobile phone; it is usually used as a data message, such as pictures and ringtones in smart messaging) and ota wap settings. 16-bit information (up to 70 char
'With decode encode
Function analyze (recmsg as string) as BooleanDim Tel as string, MSG as string, time as stringAnalyze = analyzerecmsg (buffer, tel, MSG, time)If analyze = true then'User ProcessingMobiletel. Text = TelSendmsg. Text = msg'Label1.
I searched a lot of articles on PDU parsing on the Internet, but I had no clue. Finally, I made some progress after referring to the Google Code.
Sodino has not obtained the formal MMS specification, and everything comes from Google search. I hope that the majority of users will pick up and correct the mistakes. I am very grateful.
After the mobile phone receives the text message, Android (Android 2.2.1 from cyanogenmod for G6) will output the follow
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.